Interface (object-oriented programming)
part 1/6 · 9.9 KB total
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
top
In object-oriented programming, an interface or protocol typecite-ref-1[a] is a data type that acts as an abstraction of a class. It describes a set of method signatures, the implementations of which may be provided by multiple classes that are otherwise not necessarily related to each other.cite-ref-csharp-learn-2-0[1] A class which provides the methods listed in an interface is said to implement the interface,cite-ref-csharp-learn-2-1[1] or to adopt the protocol.cite-ref-swift-24h-3-0[2]
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────